package com.neiquan.neiquandemo.test;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.neiquan.neiquandemo.R;
import com.neiquan.neiquandemo.fmanager.BaseFragment;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 作者 ： 邓勇军
 * 时间 ： 2016/12/29.
 * version:1.0
 */
public class OneFragment extends BaseFragment implements View.OnClickListener {
    @InjectView(R.id.standard)
    Button standard;

    @Override
    public int getRootViewId() {
        return R.layout.home_layout;
    }

    @Override
    public void setViews() {
    }

    @Override
    public void initData() {
    }

    @Override
    public boolean mainTabShow() {
        return true;
    }


    @OnClick({R.id.standard})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.standard:
                getRoot().manager.setAnim(R.anim.in_from_right,R.anim.out_to_left,R.anim.in_from_left,R.anim.out_to_right);
                open(new TwoFragment(), null);
                //open(new Fragment1(), args, StackManager.STANDARD);
                break;
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        ButterKnife.inject(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.reset(this);
    }
}

